package com.runachina.appversion;

import android.app.Application;

import com.runachina.application.MyApplication;

import cn.bmob.v3.BmobQuery;

/**
 * Created by Isay on 2016/11/25.
 */
public class BombQuery {

    /**
     * @return bmob查询对象
     */
    public BmobQuery<AppVersion> getQuery() {
        BmobQuery<AppVersion> query = null;
        try {
            query = new BmobQuery<AppVersion>();
        } catch (Exception e) {
            Application app = MyApplication.getInstance();
            if (app != null) {
                ((MyApplication) app).initBomb();
            }
        } finally {
            return query;
        }
    }


}
